import { createSlice, createAsyncThunk } from '@reduxjs/toolkit';

const userSlice = createSlice({
    name: "user",
    initialState: {
        isModalVisible: false,
    },
    reducers: {
        setIsModalVisible(state, action) {
            state.isModalVisible = action.payload;
        },
    }
});

export const { setIsModalVisible } = userSlice.actions;
export default userSlice.reducer;